import component from './component.vue';
import XUE from '@/XUE';
import Text from '../configView/Text.vue';
import Font from '../configView/Font.vue';
import icon from '@/assets/image/douyin-text.png';

XUE.registerComponent('文本', component, {
    name: 'x-douyin-text',
    icon,
    label: '抖音',
    getConfig() {
        return {
            name: 'x-douyin-text',
            style: {
                left: 20,
                top: 100,
                width: 200,
                height: 'auto',
                fontSize: 32,
            },
            data: {
                text: 'Hello World',
            },
        };
    },
    getConfigView() {
        return [{
            title: '文本内容',
            view: Text,
        }, {
            title: '文字样式',
            view: Font,
        }];
    }
})